package cn.itcast.farming.entity;

import lombok.Data;

/**
 * 存储空间
 */
@Data

public class Bucket {

    /**
     * 存储源，如七牛云、阿里云、hdfs本地实现等，可扩展
     */
    private String origin;

    /**
     * 空间名称
     */
    private String name;

    /**
     * 是否受保护的资源，如果是受保护资源，则必须使用凭证下载
     */
    private boolean protect;

    public Bucket(String origin, String name, boolean protect) {
        this.origin = origin;
        this.name = name;
        this.protect = protect;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isProtect() {
        return protect;
    }

    public void setProtect(boolean protect) {
        this.protect = protect;
    }
}
